package com.smxy.daydayup.service.serviceImpl;

import com.smxy.daydayup.pojo.dto.StudyCourseInfo;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.smxy.daydayup.pojo.CourseScore;
import com.smxy.daydayup.mapper.CourseScoreMapper;
import com.smxy.daydayup.service.CourseScoreService;
/**
  * @team daydayup
  * @time 2021-12-06 21:45
  */
@Service
public class CourseScoreServiceImpl implements CourseScoreService{

    @Resource
    private CourseScoreMapper courseScoreMapper;

    @Override
    public int deleteByPrimaryKey(Long courseScoreId) {
        return courseScoreMapper.deleteByPrimaryKey(courseScoreId);
    }

    @Override
    public int insert(CourseScore record) {
        return courseScoreMapper.insert(record);
    }

    @Override
    public int insertSelective(CourseScore record) {
        return courseScoreMapper.insertSelective(record);
    }

    @Override
    public CourseScore selectByPrimaryKey(Long courseScoreId) {
        return courseScoreMapper.selectByPrimaryKey(courseScoreId);
    }

    @Override
    public int updateByPrimaryKeySelective(CourseScore record) {
        return courseScoreMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(CourseScore record) {
        return courseScoreMapper.updateByPrimaryKey(record);
    }

    @Override
    public int insertStudyCourse(StudyCourseInfo studyCourseInfo) {
        return courseScoreMapper.insertStudyCourse(studyCourseInfo);
    }

}
